import React, { Component } from "react";
import { Switch, Route, Redirect } from "react-router-dom";
import ManagerHome from "./home";
import AddManager from "./addmanager";

export default class StaffManager extends Component {
  render() {
    return (
      <Switch>
        <Route path="/staffmanager" component={ManagerHome} exact />
        <Route path="/staffmanager/add" component={AddManager} />
        <Redirect to="/staffmanager" />
      </Switch>
    );
  }
}
